-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ACL cache and debouncing request queues for creation/deletion requests to make parallelism useful #357
Conversation
bd5a211
to
45c9c20
Compare
Not sure if the CI failures are legit, as I have tests passing locally...? |
I've test your PR and seems something wrong with it. After plan I've got an error:
Same error in the pipeline tests https://github.com/Mongey/terraform-provider-kafka/actions/runs/7386689599/job/20093815910?pr=357 Without this patch all works good |
6a84564
to
be82e9b
Compare
@SanchosPancho I'd been running When running I've made changes in be82e9b which should allow the testacc container to reach the brokers via the docker-compose network on 9090 (this would let the old CircleCI test approach work again). I've just been running
successfully on my end. I think some of the tests are already racy anyway, but I've run this 5 times now and got 5 passes in a row. Could you try on your side? Also sounds like some overlap with #383 which is nothing to do with this PR? |
@eh-steve I've try it on real cluster, but I think that depends on kafka version, I've fail on old 2.3+ kafka cluster |
Yeah I guess if you wanted to test this PR you could locally cherry pick the first commit onto an older master. I've also released it in the registry under |
… make parallelism useful/cheap
…efile to use internal advertised listeners when running testacc under docker
4d9297a
to
e94ca55
Compare
Hey @eh-steve , Thanks for the above optimizations. Does the above reduce the time execution, on regular terraform plan commands for clusters that have tons of ACLs ? BTW is there any help you need, to push forward with this PR? |
Yeah it should
Just waiting for an approval and a CI run |
Hi @Mongey, thanks for the run, I can’t reproduce these CI failures locally and one of them seems to be related to GPG? Is master CI passing? |
hey @eh-steve thanks for the PR! looks great! I pulled the branch down locally and tested -- it seems to work for me. |
When creating/destroying 1000 ACLs:
On a real cluster with ~80k ACLs
Provides 89000% speedup for ACL creations (~8000s -> ~9s)
On a fresh cluster with no ACLs yet:
Provides a 780% speedup for ACL creations and 1470% speedup for ACL deletions .
Before:
After:
For anyone facing the same issue, I've published a release here until this PR is reviewed/merged:
https://registry.terraform.io/providers/eh-steve/kafka/latest